package com.panopset.gui;

import java.awt.Component;

import javax.swing.JTabbedPane;

import static com.panopset.Util.*;
import static com.panopset.gui.LookAndFeel.*;

public class TTabbedPane extends JTabbedPane {

    public TTabbedPane() {
        super();
        init();
    }

    public TTabbedPane(int newTabPlacement) {
        super(newTabPlacement);
        init();
    }

    private void init() {
        setBackground(BG_COLOR);
        setForeground(FG_COLOR);
        this.setFont(ARIAL_PLAIN_10);
    }

    @Override
    public Component add(Component c) {
        Component rtn = super.add(c);
        setBackgroundAt(getComponentCount() - 1, BG_COLOR);
        return rtn;
    }

    private static final long serialVersionUID = VERSION_SERIAL_NUMBER;
}
